<template>
<!-- 审核中心  begin -->
<div class="main main-user-identify" id="main_check_identify">
	<div class="main-hd">
		<h2>审核中心</h2>
	</div>
	<div id="identifyBeginDiv"  style="float:right;margin-right:2%;margin-top: -50px;">
		<Button type="warning"  @click="sendBackOrAcceptOrder(0)">全部发回</Button>
		<Button type="success" @click="sendBackOrAcceptOrder(1)">开始接单</Button>
	</div>
	<div class="main-bd">
		<div class="content-wrap">
			<!-- 认证申请列表 begin -->
			<div class="list user-identify-list" id="check_identify_list">
				<table class="table table-hover table-condensed" border>
					<thead>
					  <tr>
						<td>用户编号</td>
						<td>用户姓名</td>
						<td>手机号码</td>
						<td>用户来源</td>
						<td>身份证信息</td>
						<td>认证时间</td>
						<td>审核人</td>
						<td>接单时间</td>
						<td>操作</td>
					  </tr>
					</thead>
					<tr v-for="item in identifyList" class="identifyList"  :dataid="item.id">
						<td>{{item.userId}}</td>
						<td>{{item.name}}</td>
						<td>{{item.cellphone}}</td>
						<td v-show="item.type == 0">多多钱袋</td>
						<td>{{item.idnumber}}</td>
						<td>{{item.submitTime | getLocalTime}}</td>
						<td>{{item.checkManagerName}}</td>
						<td>{{item.acceptTime | getLocalTime}}</td>
						<td>
							<button class="btn btn-primary" data-toggle="modal" data-target="#newIdentifyModal" @click="getIdentifyInfo(item.id,item.userId,0);getCallLog(item.userId);getMobileInfo(item.userId);">详情</button>
						</td>
					</tr>
				</table>
			</div>
			<!-- 认证申请列表 end -->
			
			<!-- 资料详情弹出层 begin -->
			<div class="modal fade" id="newIdentifyModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			   	<div class="modal-dialog">
			      	<div class="modal-content">
			         	<div class="modal-header">
			            	<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			            	<h4 class="modal-title">用户认证资料</h4>
			         	</div>
			         	<div class="modal-body">
			            	<Tabs value="name1">
						        <TabPane label="个人信息" name="name1">
						        	<div class="list js-identify-list"  id="identify_person_list">
						        		<h4>个人信息</h4><ul>
						        			<li><span>姓名：</span>{{userIdentiInfo.name}}-{{userIdentiInfo.cellphone}}</li>
						        			<li><span>电话归属地：</span>{{userIdentiInfo.cellphoneLocation}}</li>
						        			<li><span>性别：</span>{{userIdentiInfo.sex}}</li>
						        			<li><span>身份证号码：</span>{{userIdentiInfo.idNumber}}</li>
						        			<li><span>本人年龄：</span>{{userIdentiInfo.age}}</li>
						        			<li><span>民族：</span>{{userIdentiInfo.nation}}</li>
						        			<li><span>身份证地址：</span>{{userIdentiInfo.idNumberAddr}}</li>
									    	<li><span>工作地址：</span>{{userIdentiInfo.workAddr}}</li>
									    	<li><span>工作单位：</span>{{userIdentiInfo.company}}</li>
									    	<li><span>工作电话：</span>{{userIdentiInfo.companyPhone}}</li>
									    	<li><span>薪资：</span>{{userIdentiInfo.salary}}</li>
									    	<li><span>三维身份信息：</span>{{userIdentiInfo.threeItemMessage}}</li>
									    	<li><span>手机使用时长（月）：</span>{{userIdentiInfo.phoneWorkLength}}</li>
									    	<li><span>当前余额：</span>{{userIdentiInfo.phoneCurBalance}}</li>
									    	<li><span>月均消费：</span>{{userIdentiInfo.phoneMonthlyAvgConsumption}}</li>
									    	<li><span>用户来源：</span>{{userIdentiInfo.userSource}}</li>
									    	<li><span>ip地址：</span><span id="fk_ipCity">{{userIdentiInfo.ipCity}}</span></li>
									    	<li><span>设备号：</span>{{userIdentiInfo.token}}<span style="color: red;">今日内出现次数：{{userIdentiInfo.tokenCount}}</span></li>
									    	<li><span>3个月内申请人在多个平台申请借款次数（同盾）：</span>{{userIdentiInfo.loanCount}}</li>
									    	<li><span>冰鉴分：</span>{{userIdentiInfo.zmScore}}</li>
									    	<li><span>通讯录和通话记录前10名匹配个数：</span>{{userIdentiInfo.phoneListMatchCount}}</li>
						        		</ul>
									    	
										<h4>核实客户信息</h4>
									    <ul>
									    	<li><span style="color:red;">*</span><span>电核客户本人办理：</span></li>
									    	<li class="w65">
									    		<input type="radio" name="isTransactByOwn" id="isTransactByOwn_1" value="1" />是
									    		<input type="radio" class="ml20" name="isTransactByOwn" id="isTransactByOwn_0" value="0" />否</li>
									    		<li><span style="color:red;">*</span><span>客户支付宝是否实名：</span></li>
									    		<li class="w65">
									    			<input type="radio" name="alipayIsRealName" id="alipayIsRealName_1" value="1" />是
									    			<input type="radio" class="ml20" name="alipayIsRealName" id="alipayIsRealName_0" value="0" />否
									    		</li>
									    		<li><button type="submit" class="btn btn-success" style="margin-top:50px;" id="submitIdentiCheck" @click="submitIdentiCheck(0,orderId,userId)">提交核实信息</button></li>
								    			<!--<li id="showeducationDiv" class="w65">
								    				 <RadioGroup v-model="person.educationMessage" type="button">
												        <Radio label="1">专科</Radio>
												        <Radio label="2">高技</Radio>
												        <Radio label="3">全日制成大</Radio>
												        <Radio label="4">全日制自考</Radio>
												        <Radio label="0">无学历</Radio>
												        <Radio label="100">有学历</Radio>
												        <Radio label="5">普通全日制本科</Radio>
												        <Radio label="6">211本科</Radio>
												        <Radio label="7">985本科</Radio>
												        <Radio label="8">研究生及以上</Radio>
												    </RadioGroup>
								    			</li>-->
					        			</ul>
					        			<div id="lip"></div>
					        			<div class="passButton">
					        				<button class="btn btn-success" @click="finalSubmitCheckOrder(2,userIdentiInfo.orderId,userIdentiInfo.userId,7);">通过</button>
					        				<button class="btn btn-danger"  @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',6);">否单</button>
					        				<button class="btn btn-warning" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',5);">驳回</button>
					        				<button class="btn btn-info" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',12);">挂起</button>
					        			</div>
						        </div>
						        </TabPane>
						        <TabPane label="紧急联系人" name="name2">
						        	<div class="list js-identify-list" id="identify_relation_list">
						        		<h4>{{contactInfo.firstContactTypeName}}信息</h4>
						        		<ul>
									    <li><span>{{contactInfo.firstContactTypeName}}姓名：</span>{{contactInfo.firstContactName}}</li> 
									    <li>
									    	<span>{{contactInfo.firstContactTypeName}}电话:</span>{{contactInfo.firstContactCellphone}}
									    	<a href="javascript:;"><span style="color: red;">出现次数:</span>{{contactInfo.firstContactCellphoneCount}}</a>
									    </li>
									    <li><span>电话归属地：</span>{{contactInfo.firstContactCellphoneLocation}}</li>
									    <li class="w100"><span>{{contactInfo.firstContactTypeName}}电话与通讯录比对结果：</span><span id="fatherphoneComparison"></span></li>
									    <li class="w100"><span>父亲关键词提取结果：</span><span id="fatherKeyWord"></span></li>
									    <li class="w100"><span>母亲关键词提取结果：</span><span id="motherKeyWord"></span></li></ul>
									   <h4>{{contactInfo.secondContactTypeName}}信息</h4>
									    <ul>
									    	<li><span>{{contactInfo.secondContactTypeName}}姓名：</span>{{contactInfo.secondContactName}}</li>
									    	<li>
									    		<span>{{contactInfo.secondContactTypeName}}电话:</span>{{contactInfo.secondContactCellphone}}
									    		<a href="javascript:;"><span style="color: red;"></span>出现次数：{{contactInfo.secondContactCellphoneCount}}</a>
									    	</li>
									    	<li><span>电话归属地：</span>{{contactInfo.secondContactCellphoneLocation}}</li>
									    	<li class="w100">
									    		<span>{{contactInfo.secondContactTypeName}}</span>电话与通讯录比对结果：</span>
									    		<span id="motherphoneComparison"></span>
									    	</li>
									    </ul>
									    <h4>电核信息</h4><ul>
									    <li><span style="color:red;">*</span><span>{{contactInfo.firstContactTypeName}}核实身份：</span></li>
									    <li class="w65"><input type="radio" name="isRealFather" id="isRealFather_1" value="1" />是  <input type="radio" class="ml20" name="isRealFather" id="isRealFather_0" value="0"  />否  <input type="radio" class="ml20" name="isRealFather" id="isRealFather_2" value="2" />存疑</li>
									    <li><span style="color:red;">*</span><span>{{contactInfo.secondContactTypeName}}核实身份：</span></li>
									    <li class="w65"><input type="radio" name="isRealMother" id="isRealMother_1" value="1" />是  <input type="radio" class="ml20" name="isRealMother" id="isRealMother_0" value="0"  />否  <input type="radio" class="ml20" name="isRealMother" id="isRealMother_2" value="2" />存疑</li>
									    <li><span style="color:red;">*</span><span>{{contactInfo.firstContactTypeName}}通讯工具/软件可查？</span></li>
									    <li class="w65"><input type="radio" name="fatherConnectToolIsCheck" id="fatherConnectToolIsCheck_1" value="1"  />是  <input type="radio" class="ml20" name="fatherConnectToolIsCheck" id="fatherConnectToolIsCheck_0" value="0" />否</li> 
									    <li class="w100"><input type="text" id="fatherConnectToolRemark" class="form-control"  placeholder="若可查,备注微信或者支付宝相关信息" /></li>
									    <li><span style="color:red;">*</span><span>{{contactInfo.secondContactTypeName}}通讯工具/软件可查？</span></li>
									    <li class="w65"><input type="radio" name="motherConnectToolIsCheck" id="motherConnectToolIsCheck_1" value="1"  />是  <input type="radio" class="ml20" name="motherConnectToolIsCheck" id="motherConnectToolIsCheck_0" value="0"  />否</li>
									    <li class="w100"><input type="text" id="motherConnectToolRemark" class="form-control"  placeholder="若可查,备注微信或者支付宝相关信息" /></li>
									    <li class="w100"><button class="btn btn-success" @click="submitIdentiCheck(1,orderId,userId);">提交核实信息</button></li></ul>
									    <div class="appeartimee" id="appeartime_1"></div></ul>
									    
									    <div class="passButton">
					        				<button class="btn btn-success" @click="finalSubmitCheckOrder(2,userIdentiInfo.orderId,userIdentiInfo.userId,7);">通过</button>
					        				<button class="btn btn-danger"  @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',6);">否单</button>
					        				<button class="btn btn-warning" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',5);">驳回</button>
					        				<button class="btn btn-info" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',12);">挂起</button>
					        			</div>
						        	</div>
						        </TabPane>
						        <TabPane label="照片信息" name="name3">
						        	<div class="list picInfo"  id="identify_photo_list">
						        		<li class="picInfoLi">
						        			<a :href="picInfo.frontImageUrl" target="_blank"><img :src="picInfo.frontImageUrl"></a>
						        			<p>身份证正面</p>
						        		</li>
						        		<li class="picInfoLi">
						        			<a :href="picInfo.backImageUrl" target="_blank"><img :src="picInfo.backImageUrl"></a>
						        			<p>身份证反面</p>
						        		</li>
						        		<li class="picInfoLi">
						        			<a :href="picInfo.picUrl1" target="_blank"><img :src="picInfo.picUrl1"></a>
						        			<p>抓拍照1</p>
						        		</li>
						        		<li class="picInfoLi">
						        			<a :href="picInfo.picUrl2" target="_blank"><img :src="picInfo.picUrl2"></a>
						        			<p>抓拍照2</p>
						        		</li>
						        		
						        		<div class="passButton">
					        				<button class="btn btn-success" @click="finalSubmitCheckOrder(2,userIdentiInfo.orderId,userIdentiInfo.userId,7);">通过</button>
					        				<button class="btn btn-danger"  @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',6);">否单</button>
					        				<button class="btn btn-warning" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',5);">驳回</button>
					        				<button class="btn btn-info" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',12);">挂起</button>
					        			</div>
						        	</div>
						        </TabPane>
						        <TabPane label="操作日志" name="name4">
						        	<div class="list js-identify-list" id="identify_orderLoger_list">
						        		<table class="table table-hover table-condensed">
						        			<thead><tr>
						        				<td>具体操作</td>
						        				<td width="120">操作人</td>
						        				<td width="155">操作时间</td>
						        			</tr></thead>
						        			<tr v-for="item in checkLogList">
						        				<td>{{checkStateObject[item.checkState]}};{{item.remark}}</td>
						        				<td>{{item.checkManagerName}}</td>
						        				<td>{{item.checkTime | getLocalTime}}</td>
						        			</tr>
						        		</table>
						        	</div>
						        </TabPane>
						        <TabPane label="备注" name="name5">
						        	<div class="list js-identify-list" id="identify_remarks_list">
						        		<ul>
						        			<li><span>运营商评分：</span>{{remarkInfo.xsScore}}</li>
						        			<li><span>活体比对结果：</span>{{remarkInfo.idphoneComparisionResult}}</li>
						        			<li><span>活体比对描述：</span>{{remarkInfo.idphoneComparisionMessage}}</li>
									    	<li>
									    		<Collapse v-model="collapseModel">
										        	<Panel name="1">
									            		通讯录列表
									            		<p slot="content" id="allListContent"></p>
									        		</Panel>
									        	</Collapse>	
									    	</li>
									    	<li><span>同盾分：</span>{{remarkInfo.finalScore}}</li>
									    	<li><span>失败原因：</span>{{remarkInfo.failReason}}</li>
									    </ul>
									    <div class="btn-wrapper">
											<a target="_blank" :href="`/vasa/#/operatorReport?userId=${userId}`" class="ivu-btn ivu-btn-primary">查看运营商报告 <Icon type="ios-arrow-forward" /></a>
										</div>
									    <div class="passButton">
					        				<button class="btn btn-success" @click="finalSubmitCheckOrder(2,userIdentiInfo.orderId,userIdentiInfo.userId,7);">通过</button>
					        				<button class="btn btn-danger"  @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',6);">否单</button>
					        				<button class="btn btn-warning" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',5);">驳回</button>
					        				<button class="btn btn-info" @click="finalSubmitCheckOrder(2,'userIdentiInfo.orderId','userIdentiInfo.userId',12);">挂起</button>
					        			</div>
						        	</div>
						        </TabPane>
						        <TabPane label="通讯记录" name="name6">
						        	<div class="list js-identify-list"  style="height: 700px !important;overflow: auto;">
						        		<table class="table table-hover table-condensed">
						        			<thead><tr>
						        				<td>号码</td>
						        				<td>互联网标识</td>
						        				<td>类别标签</td>
						        				<td>号码归属</td>
						        				<td>主叫情况</td>
						        				<td>被叫情况</td>
						        				<td>短信情况</td>
						        			</tr></thead>
						        			<tr v-for="item in callLog">
						        				<td>{{item.phone}}</td>
						        				<td>{{item.phone_info}}</td>
						        				<td>{{item.phone_label}}</td>
						        				<td>{{item.phone_location}}</td>
						        				<td>{{item.call_cnt}}次,{{item.call_seconds}}秒</td>
						        				<td>{{item.called_cnt}}次,{{item.called_seconds}}秒</td>
						        				<td>发送{{item.send_cnt}}条,接收{{item.receive_cnt}}条</td>
						        			</tr>
						        		</table>
						        	</div>
						        </TabPane>
						        
						        <TabPane label="用户检测" name="name7">
						        	<h4 class="checkClass">紧急联系人分析</h4>
						        	<div class="list"  style="max-height: 700px !important;overflow: auto;">
						        		<table class="table table-hover table-condensed">
						        			<thead><tr>
						        				<td>联系人姓名</td>
						        				<td>最后联系时间</td>
						        				<!--<td>最近半年通话记录</td>-->
						        				<td>网络标识</td>
						        				<td>其他</td>
						        			</tr></thead>
						        			<tr v-for="item in mobileInfo.emergency">
						        				<td>{{item.name}}</td>
						        				<td>{{item.contact_date}}</td>
						        				<!--<td>{{item.phone_label}}</td>-->
						        				<td>{{item.phone_info}}</td>
						        				<td>主叫{{item.call_cnt}}次,被叫{{item.called_cnt}}次,短信{{item.msg_cnt}}条</td>
						        			</tr>
						        		</table>
						        	</div>
						        	
						        	<h4 class="checkClass">风险检测</h4>
						        	<div class="list" style="max-height: 700px !important;overflow: auto;">
						        		<table class="table table-hover table-condensed">
						        			<thead><tr>
						        				<td>检查项目</td>
						        				<td>检查结果</td>
						        				<td>备注</td>
						        			</tr></thead>
						        			<tbody v-for="(item,index) in mobileInfo.contacts_overdue">
							        			<tr v-if="index == 0">
							        				<td>主叫联系人号码命中逾期情况</td>
							        				<td v-if="item.hit_cnt == 0">{{item.hit_cnt}}个</td>
							        				<td v-else>号码数量:{{item.hit_cnt}}个,通话时长:{{item.seconds}},通话次数:{{item.cnt}}</td>
							        				<td>主叫方号码命中信贷情况</td>
							        			</tr>
							        			<tr v-else-if="index == 1">
							        				<td>被叫联系人号码命中逾期情况</td>
							        				<td v-if="item.hit_cnt == 0">{{item.hit_cnt}}个</td>
							        				<td v-else>号码数量:{{item.hit_cnt}}个,通话时长:{{item.seconds}},通话次数:{{item.cnt}}</td>
							        				<td>被叫方号码命中信贷情况</td>
							        			</tr>
							        			<tr v-else-if="index == 2">
							        				<td>互通联系人号码命中逾期情况</td>
							        				<td v-if="item.hit_cnt == 0">{{item.hit_cnt}}个</td>
							        				<td v-else>号码数量:{{item.hit_cnt}}个,通话时长:{{item.seconds}},通话次数:{{item.cnt}}</td>
							        				<td>互通联系人命中信贷情况</td>
							        			</tr>
						        			</tbody>
						        			
						        			<tr v-for="(item,index) in mobileInfo.single_overdue">
						        				<td>紧急联系人{{index + 1}}号码命中逾期情况</td>
						        				<td>{{item.hit_cnt}}次</td>
						        				<td>紧急联系人{{index + 1}}号码命中逾期次数</td>
						        			</tr>
						        		</table>
						        	</div>
						        	
						        	<h4 class="checkClass">用户画像</h4>
						        	<div class="list"  style="max-height: 700px !important;overflow: auto;">
						        		<table class="table table-hover table-condensed">
						        			<thead><tr>
						        				<td>检查项目</td>
						        				<td>检查结果</td>
						        				<td>备注</td>
						        			</tr></thead>
						        			<tr v-if="mobileInfo.user_portrait.contacts_distribution != null">
						        				<td>朋友圈在哪</td>
						        				<td>{{mobileInfo.user_portrait.contacts_distribution.area}}</td>
						        				<td>{{mobileInfo.user_portrait.contacts_distribution.area}}地区联系人占比{{mobileInfo.user_portrait.contacts_distribution.ratio * 100}}%</td>
						        			</tr>
						        			<tr v-if="mobileInfo.user_portrait.silent_days != null">
						        				<td>号码静默情况</td>
						        				<td>
						        					<p>最长静默天数:{{mobileInfo.user_portrait.silent_days.max_interval}}</p>
						        					<p>({{mobileInfo.user_portrait.silent_days.start_day}}~{{mobileInfo.user_portrait.silent_days.end_day}})</p>
						        					<p>月平均静默天数:{{mobileInfo.user_portrait.silent_days.monthly_avg_days}}</p>
						        				</td>
						        				<td>无通话记录和短信记录则视为静默</td>
						        			</tr>
						        			<tr v-if="mobileInfo.user_portrait.night_activities != null">
						        				<td>夜间活动情况</td>
						        				<td>
						        					<p>月平均时长:{{mobileInfo.user_portrait.night_activities.monthly_avg_seconds}}分钟</p>
						        					<p>月平均占比:{{mobileInfo.user_portrait.night_activities.monthly_avg_seconds_ratio *100}}%</p>
						        				</td>
						        				<td>无通话记录和短信记录则视为静默</td>
						        			</tr>
						        			<tr>
						        				<td>互通联系人个数</td>
						        				<td>{{mobileInfo.user_portrait.both_call_cnt}}</td>
						        				<td>相互拨打过的号码数量</td>
						        			</tr>
						        			
						        			<tr v-for="item in  mobileInfo.special_cate">
						        				<td>{{item.cate}}</td>
						        				<td>{{item.talk_cnt}}次</td>
						        				<td>
						        					<p>主叫{{item.call_cnt}}次,时长{{item.call_seconds}}秒,</p>
						        					<p>被叫{{item.called_cnt}}次,时长{{item.called_seconds}}秒,</p>
						        					<p>短信发送{{item.send_cnt}}条,短信接收{{item.receive_cnt}}条</p>
						        				</td>
						        			</tr>
						        		</table>
						        	</div>
						        	
						        	<h4 class="checkClass">运营商月消费</h4>
						        	<div class="list"  style="max-height: 700px !important;overflow: auto;">
						        		<table class="table table-hover table-condensed">
						        			<thead><tr>
						        				<td>月份</td>
						        				<td>主叫时长/秒</td>
						        				<td>被叫时长/秒</td>
						        				<td>消费金额/元</td>
						        			</tr></thead>
						        			<tr v-for="item in mobileInfo.monthly">
						        				<td>{{item.month}}</td>
						        				<td>{{item.call_seconds}}</td>
						        				<td>{{item.called_seconds}}</td>
						        				<td>{{item.call_consumption}}</td>
						        			</tr>
						        		</table>
						        	</div>
						        </TabPane>
						    </Tabs>
			         	</div>
			         	<div class="modal-footer">
			            	<button type="button" id="newIdentifyFooter" data-orderId="" data-userId="" class="btn btn-default" data-dismiss="modal">关闭</button>
			         	</div>
			      	</div>
		      	</div>
			</div>
			<!-- 用户认证资料详情弹出层 end -->
			
			<!--<div id="layer_finalSubmitCheckOrder" class="layer_finalSubmitCheckOrder fn-hide">
				<h2>否单原因选择</h2>
				<ul>
					<li><input type="radio" name="foudan" value="1" />1、资料虚假</li>
					<li><input type="radio" name="foudan" value="2" />2、联系人电话无法接通</li>
					<li><input type="radio" name="foudan" value="3" />3、多头借贷</li>
					<li><input type="radio" name="foudan" value="4" />4、客户电话无效</li>
					<li><input type="radio" name="foudan" value="5" />5、业务代办</li>
					<li><input type="radio" name="foudan" value="6" />6、同业黑名单可查</li>
					<li><input type="radio" name="foudan" value="7" />7、不是本人办理</li>
					<li><input type="radio" name="foudan" value="8" />8、不符合业务办理硬性条件</li>
				</ul>
				<div style="margin-left:35px;">
					<button id="finalSubmitButton" class="btn btn-success layer_button_sure" onclick="finalSubmit(2,'','',6);">确定</button>
					<a class="btn btn-warning layui-layer-close layui-layer-close2 layer_button_sure">取消</a>
				</div>
			</div>-->
			
			<Modal
				v-model="vetoModel"
				title="否单原因选择"
				@on-ok="vetoFun"
				@on-cancel="cancel">
				<ul>
					<li><input type="radio" name="foudan" value="1" />1、资料虚假</li>
					<li><input type="radio" name="foudan" value="2" />2、联系人电话无法接通</li>
					<li><input type="radio" name="foudan" value="3" />3、多头借贷</li>
					<li><input type="radio" name="foudan" value="4" />4、客户电话无效</li>
					<li><input type="radio" name="foudan" value="5" />5、业务代办</li>
					<li><input type="radio" name="foudan" value="6" />6、同业黑名单可查</li>
					<li><input type="radio" name="foudan" value="7" />7、不是本人办理</li>
					<li><input type="radio" name="foudan" value="8" />8、不符合业务办理硬性条件</li>
				</ul>
			</Modal>
			
			<Modal
				v-model="submitModel"
				title="请选择额度"
				@on-ok="ok"
				@on-cancel="cancel">
				 <RadioGroup v-model="money">
			        <Radio label="500">500</Radio>
			        <Radio label="1000">1000</Radio>
			    </RadioGroup>
			    <Input v-model="inputMoney" placeholder="请输入自定义额度" style="width:300px"></Input>
			</Modal>

			<!-- <Modal
				v-model=""
			></Modal> -->
		</div>
	</div>
</div>
<!-- 审核中心 end -->
</template>

<script>
export default{
	data(){
		return{
			page:'',
			pageSize:'',
			orderId:'',
			userId:'',
			identifyList:[],
			userIdentiInfo:[],
			contactInfo:[],
			callLog:[],//通话记录
			vetoModel:false,
			submitModel:false,
			submitMessage:'',
			money:'500',
			inputMoney:'',
			
			picInfo:{},
			remarkInfo:{},
			collapseModel:'',
			loan_list_size: 1,
			loan_list_page: 1,
			loading: true,
		    person:{
		    	educationMessage:0
		    },
		    finalUpData:{},
		    checkLogList:[],
		    checkStateObject : {
		        "-1": "开始接单",
		        "12": "挂起",
		        "3": "继续审核",
		        "7": "成功",
		        "6": "否单",
		        "5": "驳回",
		        "-2": "发回池里",
		        "-9": "旧审核日志"
		    },
		    mobileInfo:{
		    	emergency:[],
		    	monthly:[],
		    	contacts_overdue:[],
		    	single_overdue:[],
		    	user_portrait:{
		    		contacts_distribution:{},
		    		silent_days:{},
		    		night_activities:{}
		    	},
		    	special_cate:[]
		    }
		}
	},
	methods:{
		getIdentify:function(page){
			var _this = this;
			var param = {};
			param.page = page || 1;
			param.pageSize = 20;
			param.state = 12;
			this.$http.post('/helsinki/admin/risk/getIdentificateOrderListByState',param).then(function(res){
	    	if (res.data.errcode == 0) {
	        	_this.identifyList = res.data.data.list;
	        	_this.loan_list_size = res.data.size;
				_this.loan_list_page = param.page;
				_this.loading = false;
	    	}
	    	},function(err){
				console.log(err);
			});
		},
		sendBackOrAcceptOrder:function(type) {
			var _this = this;
			if(type == 0){
				this.$http.post('/helsinki/admin/risk/sendBackOrAcceptOrder',{type:type}).then(function(res){
		    	if (res.data.errcode == 0) {
		    		_this.getIdentify();
		       	_this.$Message.info(res.data.info);
		    	}
		    	}, function(res){
					_this.$Message.info(res.data.info);
				});
			}else{
				this.$http.post('/helsinki/admin/risk/sendBackOrAcceptOrder',{type:type}).then(function(res){
		    	if (res.data.errcode == 0) {
		    		_this.newIdentifyInfo(res.data,type);
		       	 	_this.$Message.info(res.data.info);
		    	} else {
		    		// _this.$Message.info(res.data.info);
		    	}
		    	},function(res){
					_this.$Message.info(res.data.info);
				});
			}
		},
		getIdentifyInfo:function(id,userId,type){
			var _this = this;
			var param ={};
			param.userId = userId;
			param.orderId = id;
			param.type = type;
			this.$http.post('/helsinki/admin/risk/getUserIdentiInfo',param).then(function(res){
	    	if (res.data.errcode == 0) {
	    		_this.newIdentifyInfo(res.data, type);
	       	 	_this.$Message.info(res.data.info);
	    	}else{
	    		// _this.$Message.info(res.data.info);
	    	}
	    	},function(res){
				_this.$Message.info(res.data.info);
			});
		},
		newIdentifyInfo:function(res, type) {
			var _this=this,
			base_url = '/helsinki/admin/risk/';
			//敏感词汇
			var sensitiveWord=['追','逃','过时','拖','欠','征信','黑名单','骗','贷','借','老赖','利息','债','扣款','冻结','网','贷','金融','催','缴','宽限期','赊销','付','偿','结清','账','不良记录','信用','账单地址','购',
					'额度','抵','押','不受欢迎','还','风险状况','息','款','预警','协议书','危机','赌','嫖','彩票','赌球','毒','聚众','斗殴','情妇','黑钱','洗钱','夜店','酒吧','七乐彩','六合彩','现金','骗','提','白条','取','财务',
					'注销','申请','受理','审核','分期','委托','定期','风险','担保','无息','担保','盗取','转账','欺诈','变现','学生信用卡','死多头','零首付','分期',
					'黑户','网黑','白户','养卡','提额','身份证','套现','私贷','私借','垫还','放米','放款','水钱','口子','点位','做流水','包下款','代办信用卡','中介','贷款'];
			var salaryArr = ['暂无收入','3000以下','3001-5000','5001-8000','8001-10000','10001-20000','20000以上'];
		    var sexArr = ['男', '女'];
		    _this.userIdentiInfo = res.data.userInfo;
		    _this.contactInfo = res.data.contactInfo;
		    _this.picInfo = res.data.picInfo;
		    _this.remarkInfo = res.data.remarkInfo;
		    _this.orderId = res.data.orderId;
		    _this.userId = res.data.userId;
		    _this.checkLogList = res.data.checkLogList;
		    
		    var list = _this.contactInfo,//紧急联系人		    	
		    	orderId=res.data.orderId,
		    	userId=res.data.userId;
		    
		    $('#fatherphoneComparison').empty();
		    $('#motherphoneComparison').empty();
		    $('#fatherKeyWord').empty();
		    $('#motherKeyWord').empty();
		    $('#allListContent').empty();
		    	
		    // 中途中断未挂起的单
		    var checkResult = res.data.checkResult,
		    phoneList = res.data.phoneList,
		    // 通讯录列表

		    fatherNameType = list.firstContactTypeName || '父亲',
		    //亲属类型
		    fatherName = list.firstContactName || '--',
		    // 父亲姓名
		    fatherPhone = list.firstContactCellphone || '--',
		    // 父亲电话
		    fatherPhoneCount = list.firstContactCellphoneCount,
		    // 父亲电话出现次数
		    fatherPhoneLocation = list.firstContactCellphoneLocation,//电话归属地
		    
		    motherPhoneLocation = list.secondContactCellphoneLocation,
		    motherNameType = list.secondContactTypeName || '母亲',
		    //亲属类型
		    motherName = list.secondContactName || '--',
		    // 母亲姓名
		    motherPhone = list.secondContactCellphone || '--',
		    // 母亲电话
		    motherPhoneCount = list.secondContactCellphoneCount,
		    // 母亲电话出现次数
		    failReason = list.failReason || '--',
		    // 备注
		    IDNumberCheckInfo = list.IDNumberCheckInfo;
		    // 水印照查询结果

		    // 获取通讯录列表
		    var addressList = '',
		    tr = '',
		    motherphoneComparison = '无',
		    fatherphoneComparison = '无',
		    fatherKeyWord = '',
		    motherKeyWord = '',
		    ariseTime = [0, 0],
		    trArr = [],
		    fatherArr = ['父 ', '爸'],
		    motherArr = ['母', '妈'],
		    ariseString = '';
		    var sensitive='',common = '', allList='';
		    if (phoneList != null && phoneList != '') {
		        $.each(phoneList,
		        function(index, item) {
		            var phoneNumber = item.phoneNumber,
		            userName = item.userName;
		            
					// 父(母)亲电话与通讯录比对结果
		            if (fatherPhone == phoneNumber) {
		                fatherphoneComparison = fatherName + ',备注为' + userName;
		            }
		            if (motherPhone == phoneNumber) {	
		                motherphoneComparison = motherName + ',备注为' + userName;
		            }
					
		            // 父(母)亲关键词提取结果
		            if (userName != '' && userName != undefined) {
		                for (var i = 0; i < userName.length; i++) {
		                    // 如果字符串中不包含目标字符会返回-1
		                    for (var j in fatherArr) {//父亲关键字提取
		                        if (userName.indexOf(fatherArr[j]) != -1) {
		                            fatherKeyWord += userName + phoneNumber + ',';
		                            break;
		                        }
		                    }
		                    for (var k in motherArr) {//母亲关键字提取
		                        if (userName.indexOf(motherArr[k]) != -1) {
		                            motherKeyWord += userName + phoneNumber + ',';
		                            break;
		                        }
		                    }
		                    
		                }
		                
		                //其他敏感词汇提取
		                for (var l in sensitiveWord) {
		                	var first = userName.indexOf(sensitiveWord[l][0]),
		                		leng=sensitiveWord[l].length;
		                	if(leng == 1){
		                		if (userName.indexOf(sensitiveWord[l][0]) != -1) {
		                			var text = userName.substring(0,first) + '<span style="color:red;">'+userName.substring(first,first + 1)+'</span>' + userName.substring(first+1,userName.length);
		                            sensitive += '<p><label>' + text + '</label><label>' + phoneNumber + '</label></p>';
		                           break;
		                        }
		                	}else if(leng == 2){
		                		if (userName.indexOf(sensitiveWord[l][0]) != -1 && userName.indexOf(sensitiveWord[l][1]) != -1) {
		                			var text = userName.substring(0,first) + '<span style="color:red;">'+userName.substring(first,first + 2)+'</span>' + userName.substring(first+2,userName.length) ;
		                            sensitive += '<p><label>' + text + '</label><label>' + phoneNumber + '</label></p>';
		                            break;
		                        }
		                	}else if(leng == 3){
		                		if (userName.indexOf(sensitiveWord[l][0]) != -1 && userName.indexOf(sensitiveWord[l][1]) != -1 && userName.indexOf(sensitiveWord[l][2]) != -1) {
		                			var text = userName.substring(0,first) + '<span style="color:red;">'+userName.substring(first,first + 3)+'</span>' + userName.substring(first+3,userName.length);
		                            sensitive += '<p><label>' + text + '</label><label>' + phoneNumber + '</label></p>';
		                             break;
		                        }
		                	}else if(leng == 4){
		                		if (userName.indexOf(sensitiveWord[l][0]) != -1 && userName.indexOf(sensitiveWord[l][1]) != -1 && userName.indexOf(sensitiveWord[l][2]) != -1 && userName.indexOf(sensitiveWord[l][3]) != -1) {
		                			var text = userName.substring(0,first) + '<span style="color:red;">'+userName.substring(first,first + 4)+'</span>' + userName.substring(first+4,userName.length);
		                            sensitive += '<p><label>' + text + '</label><label>' + phoneNumber + '</label></p>';
		                             break;
		                        }
		                	}else{
		                		common += '<p><label>' + userName + '</label><label>' + phoneNumber + '</label></p>';
		                		 break;
		                	}
		                }
		                allList = sensitive + common;
		            }
		        });
		        
		        $('#fatherphoneComparison').append(fatherphoneComparison);
		        $('#motherphoneComparison').append(motherphoneComparison);
		        
		        $('#fatherKeyWord').append(fatherKeyWord);
		        $('#motherKeyWord').append(motherKeyWord);
		        $('#allListContent').append(allList);
		    }
		    
		   /*转人工规则*/
		   var manualRule =res.data.manualRule,
		   	   lip ='';
		   	$('#lip').empty();   
		   if(manualRule != '' && manualRule != null){
		   	  for(var i in manualRule){
		   	  	lip += '<p style="clear:both;color:red;font-size:20px;">'+manualRule[i]+'</p>'; 
		   	  }
		   	  $('#lip').append(lip);
		   }

		    if (checkResult != '' && checkResult != null) {
		        var isTransactByOwn = checkResult.isTransactByOwn,
		        alipayIsRealName = checkResult.alipayIsRealName,
		        educationMessage = checkResult.educationMessage - 1,
		        isRealFather = checkResult.isRealFather,
		        isRealMother = checkResult.isRealMother,
		        fatherConnectToolIsCheck = checkResult.fatherConnectToolIsCheck,
		        fatherConnectToolRemark = checkResult.fatherConnectToolRemark,
		        motherConnectToolIsCheck = checkResult.motherConnectToolIsCheck,
		        motherConnectToolRemark = checkResult.motherConnectToolRemark,
		        remark = checkResult.remark,
		        educationMessageRemark = checkResult.educationMessageRemark;
		
		        var checkResultArr = [isTransactByOwn, alipayIsRealName, isRealFather, isRealMother, fatherConnectToolIsCheck, motherConnectToolIsCheck],
		        checkResult = ['isTransactByOwn', 'alipayIsRealName', 'isRealFather', 'isRealMother', 'fatherConnectToolIsCheck', 'motherConnectToolIsCheck'];
		
		        for (var i in checkResultArr) {
		            $('#' + checkResult[i] + '_' + checkResultArr[i]).attr('checked', 'checked');
		        }
		
		        $('#showeducationDiv button').eq(educationMessage).addClass('buttonActive');
		        $('#educationMessageRemark').val(educationMessageRemark);
		        $('#fatherConnectToolRemark').val(fatherConnectToolRemark);
		        $('#motherConnectToolRemark').val(motherConnectToolRemark);
		        //$('#moreRemark').val(remark);
		    }
		
		    if (IDNumberCheckInfo == '成功') {
		        $('#Mark_' + userId).html('点击查看');
		        $('#Mark_' + userId).removeClass('fn-hide');
		    }
		
		    $('#newIdentifyFooter').attr('data-orderId', orderId);
		    $('#newIdentifyFooter').attr('data-userId', userId);
		    $('#newIdentifyModal').modal('show');
		    
		    // 为模态框添加绑定事件;关闭时自动挂起
	        $('#newIdentifyModal').on('hide.bs.modal',function() {
	            _this.finalSubmit(2,12);
	            $(this).unbind("hide.bs.modal");
	        })
			   // 为模态框添加绑定事件;关闭时自动挂起
			   
			_this.getCallLog(userId);
			_this.getMobileInfo(userId);
		},
		// 根据状态显示不同的用户信息 2017.07.04
		getIdentifyByState:function(ele) {
			console.log(ele);
		    $(ele).addClass('active').siblings('li').removeClass('active');
		    var state = $(ele).attr('data-state');
		    $('.js-identify-list').eq(state).removeClass('fn-hide').siblings('.js-identify-list').addClass('fn-hide');
		},
		submitIdentiCheck: function(type, orderId, userId) {
			var _this = this;
			var base_url = '/helsinki/admin/risk/';
		    var isTransactByOwn = $('input[name="isTransactByOwn"]:checked').val() || -1,
		    alipayIsRealName = $('input[name="alipayIsRealName"]:checked').val() || -1,
		    educationChooise = $('input[name="educationChooise"]:checked').val() || 0,
		    // 控制学历信息是否可选
		    educationMessage = _this.person.educationMessage,
		    isRealFather = $('input[name="isRealFather"]:checked').val() || -1,
		    isRealMother = $('input[name="isRealMother"]:checked').val() || -1,
		    fatherConnectToolIsCheck = $('input[name="fatherConnectToolIsCheck"]:checked').val() || -1,
		    motherConnectToolIsCheck = $('input[name="motherConnectToolIsCheck"]:checked').val() || -1,
		
		    fatherConnectToolRemark = $('#fatherConnectToolRemark').val(),
		    motherConnectToolRemark = $('#motherConnectToolRemark').val(),
		    //moreRemark = $('#moreRemark').val(),
		    postData = '';
		
		    if (educationChooise == 1 && educationMessage == -1) {
		        alert('请选择该用户的学历！');
		        return false;
		    } else if (educationChooise == 0) {
		        educationMessage == -1;
		    }
		
		    if (type == 0) {
		        var transactByOwn = $('input[name="isTransactByOwn"]'),
		        alipayRealName = $('input[name="alipayIsRealName"]'),
		        personalMessageArr = [transactByOwn, alipayRealName],
		        personalNumberArr = [isTransactByOwn, alipayIsRealName],
		        personalAlertArr = ['电核客户本人办理为必选,请确认是否客户本人办理！', '客户支付宝是否实名为必选,请确认客户支付宝是否实名!'];
		
		        for (var i = 0; i < personalMessageArr.length; i++) {
		            if (personalNumberArr[i] == -1) {
		                if (personalMessageArr[i].parent().find('label').length < 1) {
		                    personalMessageArr[i].parent().append('<label class="ml20" style="color:red;">' + personalAlertArr[i] + '</label>');
		                }
		                return false;
		            } else {
		                personalMessageArr[i].parent().find('label').remove();
		            }
		        }
		        postData = {
		            orderId: orderId,
		            userId: userId,
		            isTransactByOwn: isTransactByOwn,
		            alipayIsRealName: alipayIsRealName,
		            educationMessage: educationMessage,
		            type: type
		        }
		    } else if (type == 1) {
		        var realFather = $('input[name="isRealFather"]'),
		        realMother = $('input[name="isRealMother"]'),
		        fatherConnectTool = $('input[name="fatherConnectToolIsCheck"]'),
		        motherConnectTool = $('input[name="motherConnectToolIsCheck"]'),
		        personalMessageArr = [realFather, realMother, fatherConnectTool, motherConnectTool],
		
		        personalNumberArr = [isRealFather, isRealMother, fatherConnectToolIsCheck, motherConnectToolIsCheck],
		        personalAlertArr = ['电核父亲核实身份为必选,请确认电核父亲核实身份！', '电核母亲核实身份为必选,请确认电核母亲核实身份！', '请确认该用户父亲通讯工具是否可查！', '请确认该用户母亲通讯工具是否可查！'];
		
		        for (var i = 0; i < personalMessageArr.length; i++) {
		            if (personalNumberArr[i] == -1) {
		                if (personalMessageArr[i].parent().find('label').length < 1) {
		                    personalMessageArr[i].parent().append('<label class="ml20" style="color:red;">' + personalAlertArr[i] + '</label>');
		                }
		                return false;
		            } else {
		                personalMessageArr[i].parent().find('label').remove();
		            }
		        }
		        postData = {
		            orderId: orderId,
		            userId: userId,
		            isRealFather: isRealFather,
		            isRealMother: isRealMother,
		            fatherConnectToolIsCheck: fatherConnectToolIsCheck,
		            fatherConnectToolRemark: fatherConnectToolRemark,
		            motherConnectToolIsCheck: motherConnectToolIsCheck,
		            motherConnectToolRemark: motherConnectToolRemark,
		            type: type
		        }
		    }
		    $.post(base_url + 'submitIdentiCheck', postData,
		    function(res) {
		        if (res.errcode == 0) {
		            alert(res.info);
		        }
		    });
		},
		finalSubmitCheckOrder:function(type, orderId, userId, state) {
			var _this = this;
		    var isTransactByOwn = $('input[name="isTransactByOwn"]:checked').val() || -1,
		    alipayIsRealName = $('input[name="alipayIsRealName"]:checked').val() || -1,
		    isRealFather = $('input[name="isRealFather"]:checked').val() || -1,
		    isRealMother = $('input[name="isRealMother"]:checked').val() || -1,
		    fatherConnectToolIsCheck = $('input[name="fatherConnectToolIsCheck"]:checked').val() || -1,
		    motherConnectToolIsCheck = $('input[name="motherConnectToolIsCheck"]:checked').val() || -1;
		
		    $('#newIdentifyModal').unbind("hide.bs.modal");
		
		    if (state == 7) {
		        var transactByOwn = $('input[name="isTransactByOwn"]'),
		        alipayRealName = $('input[name="alipayIsRealName"]'),
		        realFather = $('input[name="isRealFather"]'),
		        realMother = $('input[name="isRealMother"]'),
		        fatherConnectTool = $('input[name="fatherConnectToolIsCheck"]'),
		        motherConnectTool = $('input[name="motherConnectToolIsCheck"]'),
		        personalMessageArr = [transactByOwn, alipayRealName, realFather, realMother, fatherConnectTool, motherConnectTool],
		
		        personalNumberArr = [isTransactByOwn, alipayIsRealName, isRealFather, isRealMother, fatherConnectToolIsCheck, motherConnectToolIsCheck],
		        personalAlertArr = ['电核客户本人办理为必选,请确认是否客户本人办理！', '客户支付宝是否实名为必选,请确认客户支付宝是否实名!', '电核父亲核实身份为必选,请确认电核父亲核实身份！', '电核母亲核实身份为必选,请确认电核母亲核实身份！', '请确认该用户父亲通讯工具是否可查！', '请确认该用户母亲通讯工具是否可查！'];
		        for (var i = 0; i < personalMessageArr.length; i++) {
		            if (personalNumberArr[i] == -1) {
		                if (personalMessageArr[i].parent().find('label').length < 1) {
		                    alert(personalAlertArr[i]);
		                }
		                return false;
		            } else {
		                personalMessageArr[i].parent().find('label').remove();
		            }
		        }
		        if($('#fk_ipCity').html() == '' || $('#fk_ipCity').html() == undefined){
					var confirm = window.confirm('暂未获取该用户的ip地址,确定继续执行通过操作？');
					if (confirm) {
						// _this.finalSubmit(type,state);
						_this.checkIsFilled(type, state);
					}
		        }else{
					// _this.finalSubmit(type,state);
					_this.checkIsFilled(type, state);
		        }
		    } else if (state == 6) {
		    	$('#newIdentifyModal').modal('hide');
		    	 _this.vetoModel = true;
		    } else {
		        _this.finalSubmit(type,state);
		    }
		},
		// 检查是否已经填写客户信息（个人信息，紧急联系人）
		checkIsFilled (type, state) {
			this.$http.post('/helsinki/admin/risk/preCheckPass', {
				orderId: this.orderId,
				userId: this.userId,
				remark: '',
				type: type,
				state: state
			})
			.then(({ body: { data, errcode, info }}) =>  {
				if (errcode == 0) {
					this.finalSubmit(type, state);
				} else {
					alert(info);
				}
			}, err => {
				console.log(err);
			});
		},
		finalSubmit:function(type,state) {
			var base_url = '/helsinki/admin/risk/',
			_this = this;
		
		    if (state == 7) {
		        _this.submitMessage = '即将执行通过操作,请确认!';
		    } else if (state == 6) {
		        _this.submitMessage = '即将执行否单操作,请确认!';
		    } else if (state == 5) {
		        _this.submitMessage = '即将执行驳回操作,请确认!';
		    } else if (state == 12) {
		        _this.submitMessage = '即将执行挂起操作,请确认!';
		    }
		    _this.finalUpData = {
		        orderId: _this.orderId,
		        userId: _this.userId,
		        remark: '',
		        type: type,
		        state: state
		    }
		
		    var submitPort = state == 7 ? 'checkPass': 'submitIdentiCheck';
		
		    if (state == 12) {
		        $.post(base_url + submitPort, _this.finalUpData,
		        function(res) {
		           if (res.errcode == 0) {
		           		$('#newIdentifyModal').modal('hide');
						_this.$Message.info(res.info);
						_this.getIdentify(1);
					} else {
						_this.$Message.info(res.info);
					}
		        });
		    } else if (state == 5) {
		    	var _this =this,
				base_url = '/helsinki/admin/risk/';
				$.post(base_url + submitPort, _this.finalUpData,function(res) {
					if (res.errcode == 0) {
						_this.getIdentify(1);
						$('#newIdentifyModal').modal('hide');
						_this.$Message.info(res.info);
					} else {
						// _this.$Message.info(res.info);
					}
				});
		    } else {
		    	$('#newIdentifyModal').modal('hide');
		    	_this.submitModel = true;
			}
		},
	ok(){
		var _this =this,
		base_url = '/helsinki/admin/risk/';
		_this.finalUpData.limitMoney =_this.money || _this.limitMoney;
		$.post(base_url + 'checkPass', _this.finalUpData,function(res) {
			if (res.errcode == 0) {
				_this.getIdentify(1);
				_this.$Message.info(res.info);
				
			} else {
				// _this.$Message.info(res.info);
			}
		});
	},
	vetoFun(){//否单提交操作
		var _this =this,
		base_url = '/helsinki/admin/risk/';
		var failReason = $('input[name="foudan"]:checked').val();
    	_this.finalUpData = {
    		orderId: _this.orderId,
        	userId: _this.userId,
        	failReason:failReason,
        	state:6,
        	type:2
    	}
		$.post(base_url + 'submitIdentiCheck', _this.finalUpData,function(res) {
			if (res.errcode == 0) {
				_this.getIdentify(1);
				$('#newIdentifyModal').modal('hide');
				_this.$Message.info(res.info);
			} else {
				// _this.$Message.info(res.info);
			}
		});
	},
	cancel() {
		// 弹窗取消时，订单挂起
		this.finalSubmit(2, 12);
	},
	getCallLog(userId){//通讯记录
		var _this =this,param = {};
		param.userId = userId;
		this.$http.post('/helsinki/admin/risk/getCallLog',param).then(function(res){
    	if (res.data.errcode == 0) {
        	_this.callLog = res.data.data.callLog;
    	}
    	},function(res){
			_this.$Message.info(res.data.info);
		});
	},
	getMobileInfo(userId){//获取电话详细信息
		var _this =this,param = {};
		param.userId = userId;
		this.$http.post('/helsinki/admin/risk/getMobileInfo',param).then(function(res){
    	if (res.data.errcode == 0) {
        	_this.mobileInfo.emergency = res.data.data.emergency_analysis; //紧急联系人
        	_this.mobileInfo.monthly = res.data.data.monthly_consumption;//月消费
        	_this.mobileInfo.contacts_overdue = res.data.data.risk_analysis.contacts_overdue;//联系人逾期
        	_this.mobileInfo.single_overdue = res.data.data.risk_analysis.single_overdue;//个人逾期
        	_this.mobileInfo.user_portrait = res.data.data.user_portrait;//用户画像
        	_this.mobileInfo.special_cate = res.data.data.special_cate;//用户画像
        	
    	}
    	},function(res){
			_self.$Message.info(res.data.info);
		});
	}
	},
	mounted:function(){
		this.getIdentify();
	}
}



</script>

<style>
	@import '../static/style.css';
	@import '../static/common.scss';
	
	.picInfo{
		margin:0 30px;
		text-align: center;
		min-height: 700px;
	}
	.picInfoLi{
		float:left;
		width:45%;
		margin-top: 10px;
		max-height:350px;
		overflow: hidden;
		margin-right:20px;
	}
	.picInfoLi img{
		max-height:300px;
		width: 400px;
		overflow: hidden;
	}
	
	.checkClass{
		color:#2d8cf0;
		padding: 12px 10px;
		font-size: 16px;
		background: #E6E6E6;
	}
	.btn-wrapper {
		margin-top: 12px;
		text-align: right;
	}
	.btn-wrapper a:hover,
	.btn-wrapper a:active,
	.btn-wrapper a:visited {
		color: #ffffff;
	}
</style>